package com.ruoyi.info.domain;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

import java.util.Date;

/**
 * 我的空间对象 fh_info_myspace
 * 
 * @author ruoyi
 * @date 2024-11-19
 */
@ApiModel(value = "FhInfoMyspace",description = "我的空间实体")
public class FhInfoMyspace extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 主键 */
    private Long id;

    /** 用户id */
    @Excel(name = "用户id")
    private Long userId;

    /** 发布数量 */
    @ApiModelProperty("发布数量")
    @Excel(name = "发布数量")
    private Long postNum;

    /** 发布照片 */
    @ApiModelProperty("发布照片")
    @Excel(name = "发布照片")
    private String postImages;


    /** 最近浏览 */
    @ApiModelProperty("最近浏览")
    @Excel(name = "最近浏览")
    private Long recentlyView;

    /** 状态 */
    @Excel(name = "状态")
    private String status;

    /** 创建时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "创建时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date crateTime;

    public FhInfoMyspace() {
    }

    @Override
    public String toString() {
        return "FhInfoMyspace{" +
                "id=" + id +
                ", userId=" + userId +
                ", postNum=" + postNum +
                ", postImages='" + postImages + '\'' +
                ", recentlyView=" + recentlyView +
                ", status='" + status + '\'' +
                ", crateTime=" + crateTime +
                '}';
    }

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public Long getUserId() {
        return userId;
    }

    public void setUserId(Long userId) {
        this.userId = userId;
    }

    public Long getPostNum() {
        return postNum;
    }

    public void setPostNum(Long postNum) {
        this.postNum = postNum;
    }

    public String getPostImages() {
        return postImages;
    }

    public void setPostImages(String postImages) {
        this.postImages = postImages;
    }

    public Long getRecentlyView() {
        return recentlyView;
    }

    public void setRecentlyView(Long recentlyView) {
        this.recentlyView = recentlyView;
    }

    public String getStatus() {
        return status;
    }

    public void setStatus(String status) {
        this.status = status;
    }

    public Date getCrateTime() {
        return crateTime;
    }

    public void setCrateTime(Date crateTime) {
        this.crateTime = crateTime;
    }

    public FhInfoMyspace(Long id, Long userId, Long postNum, String postImages, Long recentlyView, String status, Date crateTime) {
        this.id = id;
        this.userId = userId;
        this.postNum = postNum;
        this.postImages = postImages;
        this.recentlyView = recentlyView;
        this.status = status;
        this.crateTime = crateTime;
    }
}
